//
//  QJShopCarBottomView.h
//  QuanJieShopProject
//
//  Created by apple on 2018/2/7.
//  Copyright © 2018年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, QJShopCarBottomViewEditState){
    QJShopCarBottomViewStateNormal,  // 一般状态
    QJShopCarBottomViewStateEdit,    // 编辑状态
};

typedef NS_ENUM(NSInteger, QJShopCarBottomViewSelectState){

    QJShopCarBottomViewStateSelectAll,    // 选择全部
    QJShopCarBottomViewStateDisSelectAll, // 取消选择全部
};


@interface QJShopCarBottomView : UIView
@property (nonatomic, strong) UILabel *priceLabel;

- (void)bottomViewUpdateDataWithPrice:(CGFloat)price;

// btn.selected YES:全选 NO:取消全选
@property (nonatomic, copy) void (^selectedAllBlock)(BOOL isSelect);

// 编辑状态: 删除  一般状态: 计算
@property (nonatomic, copy) void (^payBtnClickBlock)(void);

// 默认 一般状态
@property (nonatomic, assign) QJShopCarBottomViewEditState editState;

// 默认 取消选择全部
@property (nonatomic, assign) QJShopCarBottomViewSelectState selectState;
@property (nonatomic, strong) UIButton *selectedAllBtn;
@end

